<?php
$this->load->library('pagination');

$config['base_url'] = 'http://localhost/CodeIgniter/questions/active/page/';
$config['total_rows'] = '200';
$config['per_page'] = '20'; 

$this->pagination->initialize($config); 

echo $this->pagination->create_links();
?>